import request from '@/utils/request'

// 查询商城订单微信交易列表
export function listOrderTrans(query) {
  return request({
    url: '/admin/order/orderTrans/list',
    method: 'get',
    params: query
  })
}

// 查询商城订单微信交易详细
export function getOrderTrans(id) {
  return request({
    url: '/admin/order/orderTrans/' + id,
    method: 'get'
  })
}

// 新增商城订单微信交易
export function addOrderTrans(data) {
  return request({
    url: '/admin/order/orderTrans',
    method: 'post',
    data: data
  })
}

// 修改商城订单微信交易
export function updateOrderTrans(data) {
  return request({
    url: '/admin/order/orderTrans',
    method: 'put',
    data: data
  })
}

// 删除商城订单微信交易
export function delOrderTrans(id) {
  return request({
    url: '/admin/order/orderTrans/' + id,
    method: 'delete'
  })
}
